<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- 1.instanceof是如何判断的?
		  表达式: A instanceof B
		  如果B函数的显示原型对象在A对象的原型链上，返回true，否则返回false
		2.Function是通过new自己产生的实例 -->
		
		<script type="text/javascript">
			// 案例1
			function Foo() { }
			var f1 = new Foo()
			console.log(f1 instanceof Foo)//true
			console.log(f1 instanceof Object)//true
			
			// 案例2
			console.log(Object instanceof Function)//true
			console.log(Object instanceof Object)//true
			console.log(Function instanceof Function)//true
			console.log(Function instanceof Object)//true
			
			function Foo() {}
			console.log(Object instanceof Foo)//false
		</script>
	</body>
</html>
